<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../../css/bootstrap.css">
    <link rel="stylesheet" href="./site.css">
    <script src="./site.js"></script>
</head>
<body>
    <p id="p1">the first of my js </p>
    <p id="demo">我的第一个js 程序</p>
    <button onclick="myfunction()">点我点我</button>
    <script>
        document.write(Date());
        function myfunction(){
            document.write(Date());
        }

        function myFunction(){
            var carName;
            carName = "Volvo";
            document.getElementById("demo1").innerHTML = carName; 
        }
    </script>
   <div>创建一个变量，也就是声明一个变量，并对其进行赋值</div>
   <button class="btn btn-info demo1">click me</button>
   
    
</body>
</html>